- if current_user
  - if access = @group.users.find_by(id: current_user.id)
    .controls
      .dropdown.group-settings-dropdown
        %a.dropdown-new.btn.btn-default#group-settings-button{href: '#', 'data-toggle' => 'dropdown'}
          = icon('cog')
          = icon('caret-down')
        %ul.dropdown-menu.dropdown-menu-align-right
          - if can?(current_user, :admin_group, @group)
            = nav_link(path: 'groups#projects') do
              = link_to projects_group_path(@group), title: '项目' do
                项目
            %li.divider
            %li
              = link_to edit_group_path(@group) do
                编辑群组
          %li
            = link_to leave_group_group_members_path(@group),
              data: { confirm: leave_group_message(@group.name) }, method: :delete, title: '离开群组' do
              离开群组
